package com.mfrs;

import android.os.Parcel;
import android.os.Parcelable;

public final class FaceData implements Parcelable
{
	private int[] head;
	private int[] leftEye;
	private int[] rightEye;
	private float faceQualityScore;
	
	private byte[] featureData;
		
	public static final Creator<FaceData> CREATOR = new Creator<FaceData>() {

		@Override
		public FaceData createFromParcel(Parcel in) {
			return new FaceData(in);		
			}

		@Override
		public FaceData[] newArray(int size) {
			return new FaceData[size];
		}		
	};
	
	public FaceData()
	{

	}
	
	public FaceData(Parcel in){
		readFromParcel(in);
	}
	
    public void readFromParcel(Parcel in) {        	
    	head = in.createIntArray();
    	leftEye = in.createIntArray();
    	rightEye = in.createIntArray();
//    	in.readIntArray(head);
//    	in.readIntArray(leftEye);
//    	in.readIntArray(rightEye);
    	faceQualityScore = in.readFloat();
    	featureData = in.createByteArray();
   }
    
    
	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel outParcel, int flags) {
		outParcel.writeIntArray(head);
		outParcel.writeIntArray(leftEye);
		outParcel.writeIntArray(rightEye);
		outParcel.writeFloat(faceQualityScore);	
		outParcel.writeByteArray(featureData);
	}

	public int[] getHead() {
		return head;
	}

	protected void setHead(int[] head) {
		this.head = head;
	}

	public int[] getLeftEye() {
		return leftEye;
	}

	protected void setLeftEye(int[] leftEye) {
		this.leftEye = leftEye;
	}

	public int[] getRightEye() {
		return rightEye;
	}

	protected void setRightEye(int[] rightEye) {
		this.rightEye = rightEye;
	}

	public float getFaceQualityScore() {
		return faceQualityScore;
	}

	protected void setFaceQualityScore(float faceQualityScore) {
		this.faceQualityScore = faceQualityScore;
	}

	public byte[] getFeatureData() {
		return featureData;
	}

	protected void setFeatureData(byte[] featureData) {
		this.featureData = featureData;
	}
	
	
	
	
	
	

}